<?php

class Webmix_Form_Webmix_Rename extends Engine_Form
{
    
  public function init()
  {
    $view = Zend_Registry::get('Zend_View');
    $this
      ->setTitle('Rename webmix');
      

    $this->addElement('text','webmix_name',array(
        'label' => $view->translate('Webmix name'),
        'required' => true,
        'allowEmpty' => false
    ));
    
    $this->addElement('Button', 'submit', array(
      'type' => 'submit',
      'label' => 'Rename',
      'decorators' => array('ViewHelper')
    ));

    $this->addElement('Cancel', 'cancel', array(
      'label' => 'cancel',
      'link' => true,
      'prependText' => Zend_Registry::get('Zend_Translate')->_(' or '),
      'href' => '',
      'onclick' => 'parent.Smoothbox.close();',
      'decorators' => array(
        'ViewHelper'
      )
    ));
    $this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
    $button_group = $this->getDisplayGroup('buttons');

  }
}